package com.github.bobjoy.java.jiekou;

public abstract class AbstractClass1 {

    abstract void print();

    public static void main(String[] args) {
        short s1 = 1;
//        s1 = s1 + 1;
        s1 += 1;
        s1 = (short)(s1 + 1);

        short a = 128;
        byte b = (byte) a;
        System.out.println(a);
        System.out.println(b);

        // 0000000
        int i = 5, j = 10;
        System.out.println(i + ~j);

        Object o = new Object() {
            @Override
            public boolean equals(Object obj) {
                return true;
            }
        };
        System.out.println(o.equals("aaa"));

        Parent c = new Child();
        c.print();
    }
}

class Parent {
    void print() {
        System.out.println("parent");
    }
}
class Child extends Parent {

}

